package com.chengyu.eyc.mapper;

import java.util.List;
import java.util.Map;

import com.chengyu.eyc.base.BaseMapper;
import com.chengyu.eyc.model.EycUserCoupon;

public interface EycUserCouponMapper extends BaseMapper<EycUserCoupon> {


    /**
     * 根据类型分页查询用户的优惠券
     * @param params
     * @return
     */
    List<Map<String, Object>> searchCouponByUserIdAndType(Map<String,Object> params);
    
    /**
     * 统计领取理车券的金额
     * @param params
     * @return
     */
    Integer sumCouponAmountByUserIdAndType(Map<String,Object> params);
    
    
    /**
     * @param params
     * @return
     */
    int searchCouponCountByUserIdAndType(Map<String, Object> params);

    /**
     * @param userId
     * @return
     */
    EycUserCoupon searchOneCouponByUserId(String userId);
}